package crivia.eca.carry;

import java.util.HashMap;
import java.util.Map;

import crivia.eca.ECA;
import crivia.eca.i.HTMLForm;
import crivia.eca.i.WorkflowAction;

public class WorkFlow {
	
	private String id;
	
	private String name;
	
	private Class<? extends ECA> actor;
	
	private Map<String, HTMLForm> forms = new HashMap<String, HTMLForm>();
	
	private Class<? extends WorkflowAction> configureFrom;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class<? extends ECA> getActor() {
		return actor;
	}

	public void setActor(Class<? extends ECA> actor) {
		this.actor = actor;
	}

	public Map<String, HTMLForm> getForms() {
		return forms;
	}

	public void setForms(Map<String, HTMLForm> forms) {
		this.forms = forms;
	}
	
	public Class<? extends WorkflowAction> getConfigureFrom() {
		return configureFrom;
	}

	public void setConfigureFrom(Class<? extends WorkflowAction> configureFrom) {
		this.configureFrom = configureFrom;
	}

	public WorkFlow(String id, String name, Class<? extends ECA> actor, Map<String, HTMLForm> forms, Class<? extends WorkflowAction> configureFrom) {
		super();
		this.id = id;
		this.name = name;
		this.actor = actor;
		this.forms = forms;
		this.configureFrom = configureFrom;
	}

}
